
#method one
#the big int already in python
# a = int(input())
# b = int(input())
# print(a + b)

#method 2
def change_length(str_num, l):
    str_num = '0' * (l - len(str_num)) + str_num
    return str_num

if __name__ == '__main__':
    num1 = input()
    num2 = input()
    #change the length
    if len(num1) > len(num2):
        num2 = change_length(num2, len(num1))
    elif len(num1) < len(num2):
        num1 = change_length(num1, len(num2))
    ans = [0 for _ in range(len(num1) + 1)]
    #carry
    carry = 0
    len_num = len(num1)
    for i in range(len_num):
        val = carry + int(num1[len_num - i - 1]) + int(num2[len_num - i - 1])
        ans[len_num -i] = val % 10
        carry = val // 10

    if carry != 0:
        ans[0] = carry
        print(*ans, sep='')
    else:
        print(*ans[1:],sep='')